package com.erlang4j.example.sendMessage;

import java.io.IOException;

import com.ericsson.otp.erlang.OtpErlangDecodeException;
import com.erlang4j.api.Erlang4jFactory;
import com.erlang4j.api.IErlang4j;

public class SendOneMessage {
	public static void main(String[] args) throws InterruptedException, IOException, Exception, OtpErlangDecodeException {
		IErlang4j erlang4j = Erlang4jFactory.make("ErlangVm", "cookie", "JavaVm");
		erlang4j.send("simpleServer", "{Self,{text,P0}}", "someText");
	}
}
